package com.blockmeta.bbs.immodule.net.api;

import com.blockmeta.bbs.businesslibrary.net.pojo.BaseImResponse;
import com.blockmeta.bbs.immodule.net.pojo.IMCircleEntityBook;

import java.util.List;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author AirThor
 * @date 2019/3/28.
 */
public interface GetChatGroupByUidApi {
    /**
     * @see <a hreh="https://gitee.com/btc8/appserver/wikis/IM?sort_id=1348722#37-%E7%A6%BB%E5%BC%80%E5%9C%88%E5%AD%90-chatgroupleavechatgroup-get"/>
     * @param userId 用户uid
     * @return 结果
     */
    @GET("im/chatGroup/getChatGroupByUid")
    Flowable<BaseImResponse<List<IMCircleEntityBook>>> getChatGroupByUid(@Query("userId") long userId);
}
